﻿namespace SimpleWebServices
{
    using System;
    using System.Transactions;
    using SimpleWebServices.Data;

    public static class Program
    {
        public static void Main(string[] args)
        {
            using (TransactionScope transaction = new TransactionScope())
            {
                foreach (string arg in args)
                {
                    XmlDataObjectCollection.Load(arg).Upsert();
                    Console.WriteLine("Imported " + arg);
                }

                transaction.Complete();
            }
        }
    }
}